package com.swb.mybatis04emp.factory;

import com.alibaba.druid.pool.DruidDataSource;
import org.apache.ibatis.datasource.pooled.PooledDataSourceFactory;

/**
 * @title: MySqlSessionFactory
 * @author: 流沐颖
 * @date:2022/6/1 14:00
 * @description:
 * @version: study
 */
public class MySqlSessionFactory extends PooledDataSourceFactory {

    /**
     * 无参构造 进行找到druid的数据库连接池
     */
    public MySqlSessionFactory() {
        this.dataSource = new DruidDataSource();
    }
}
